package cn.hou.java.designpattern._20commod;

public class BuyCommand implements ICommand {
	//引用命令实际执行者
	private Worker worker;
	
	public BuyCommand(Worker worker) {
		this.worker = worker;
	}

	@Override
	public void excute() {
		//实际调用命令执行者来执行命令
		worker.buy();
	}

}
